//重要：若安装vite-plugin-mock最新版本会引入错误，因为安装包内不存在es文件夹；我这里安装的是@2.8.0 版本
import { createProdMockServer } from "vite-plugin-mock/es/createProdMockServer";
import dictMock from "./modules/dict.ts";
import userMock from "./modules/user.ts";
import menuMock from "./modules/menu.ts";
import activityFestivalMock from "./modules/activity-festival.ts";
export const mockModules = [...dictMock, ...activityFestivalMock, ...userMock, ...menuMock]; //ES6语法 ..., 拷贝对象

export function setupMockServer() {
  createProdMockServer(mockModules);
}
